<style type="text/css">
    .ui.add.modal .twoWord{min-width:4em; }
    .ui.add.modal .threeWord{min-width:5em;}
    .ui.add.modal .fourWord{min-width:6em;}
    .ui.show.modal .fourWord{min-width: 5em;}
    .ui.show.modal .fiveWord{min-width: 6em;}
    .ui.show.modal .sixWord{min-width: 7em;}
    .ui.show.modal .eightWord{min-width: 9em;}
    .ui.show.modal .nineWord{min-width: 10em;}
    .ui.edit.modal .fourWord{min-width: 7em;}
    .ui.edit.modal .fiveWord{min-width: 8em;}
    .ui.edit.modal .sixWord{min-width: 9em;}
    .ui.edit.modal .sevenWord{min-width: 10em;}
    .ui.menu a{ font-size: 16px;}
</style>
<div class="cont">
    <div class="position">
        <img alt="位置图标" src="dist/images/position.png" />人力资源&gt;员工管理
    </div>
     <div class="mybackground">
        <div class="cont_fr_top">
            <div class="menus_top">
                <div class="menus_l"> 员工状态</div>
                <ul id="nav">
                    <li ng-if="search_param.status == -2" class="selected"  ><a  >全部</a></li>
                    <li ng-if="search_param.status != -2" ><a   ng-click="search_param.status=-2" >全部</a></li>
                    <!-- <li ng-if="search_param.status == 1" class="selected" ><a   >试用员工</a></li>
                    <li  ng-if="search_param.status != 1"  ><a   ng-click="search_param.status=1" >试用员工</a></li> -->
                    <li ng-if="search_param.status == 2" class="selected"><a    >正式员工</a></li>
                    <li ng-if="search_param.status != 2"  ><a    ng-click="search_param.status=2" >正式员工</a></li>
                    <li  ng-if="search_param.status == -1" class="selected" ><a  >离职员工</a></li>
                    <li ng-if="search_param.status != -1"><a    ng-click="search_param.status=-1" >离职员工</a></li>
                </ul>
                <div class="cont_fr_btn">
                    <div class="fr" style="height: 20px;">
                        <button class="cont_f_btn3" ng-click="addUser()" >新增员工</button>
                        <!-- <button class="cont_f_btn1" ng-click="delAll()">批量删除员工</button> -->
                    </div>
                </div>
            </div>
            <div class="menus">
                <div class="menus_con">
                    <div class="ui form">
                        <div class="four fields">
                            <div class="inline field">
                                <label>姓名</label>
                                <input type="text" placeholder="姓名" ng-model="search_param.ename" style="width:160px" maxlength="5">
                            </div>
                            <div class="inline field">
                                <label>工号</label>
                                <input type="text" ng-model="search_param.eyggh" placeholder="工号" style="width:160px" maxlength="6">
                            </div>
                            <div class="inline field">
                                <label for="textfield" class="li_lable">在岗状态</label>
                                <div class="ui selection dropdown" style="width:160px">
                                    <input type="text" style="display:none;" ng-model="search_param.estatus">
                                    <div class="default text">默认全部</div>
                                    <i class="dropdown icon"></i>
                                    <div class="menu">
                                        <div class="item" data-value="-1">全部</div>
                                        <div class="item" data-value="0">正常</div>
                                        <div class="item" data-value="1">产假</div>
                                        <div class="item" data-value="2">停薪留职</div>
                                    </div>
                                </div>
                            </div>
                            <div class="inline field">
                                <label for="textfield" class="li_lable">性别</label>
                                <div class="ui selection dropdown" style="width:160px">
                                    <input type="text" style="display:none;" ng-model="search_param.sex">
                                    <div class="default text">默认</div>
                                    <i class="dropdown icon"></i>
                                    <div class="menu">
                                        <div class="item" data-value="-1">全部</div>
                                        <div class="item" data-value="1">男</div>
                                        <div class="item" data-value="2">女</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="four fields">
                            <div class="inline field">
                                <label for="textfield" class="li_lable">学历</label>
                                <div class="ui selection dropdown" style="width:160px">
                                    <input type="text" style="display:none;" ng-model="search_param.exl">
                                    <div class="default text">默认全部学历</div>
                                    <i class="dropdown icon"></i>
                                    <div class="menu">
                                        <div  class="item" data-value="-1">全部学历</div>
                                        <div class="item" data-value="1">博士研究生</div>
                                        <div class="item" data-value="2">硕士研究生</div>
                                        <div class="item" data-value="3">本科</div>
                                        <div class="item" data-value="4">大专</div>
                                        <div class="item" data-value="5">中专以下</div>
                                    </div>
                                </div>
                            </div>
                            <div class="inline field">
                                <label>专业</label>
                                <input type="text" ng-model="search_param.eduContent" placeholder="专业" style="width:160px" maxlength="8">
                            </div>
                            <div class="inline field">
                                <label for="textfield" class="li_lable">政治面貌</label>
                                <div class="ui selection dropdown" style="width:160px;">
                                    <input type="text" style="display:none;" ng-model="search_param.ezzmm">
                                    <div class="default text">默认全部</div>
                                    <i class="dropdown icon"></i>
                                    <div class="menu">
                                        <div class="item" data-value="-1">全部</div>
                                        <div class="item" data-value="1">党员</div>
                                        <div class="item" data-value="2">预备党员</div>
                                        <div class="item" data-value="3">团员</div>
                                        <div class="item" data-value="4">群众</div>
                                    </div>
                                </div>
                            </div>
                            <div class="inline field">
                                <label for="textfield" class="li_lable">部门</label>
                                <div class="ui selection dropdown" style="width:160px">
                                    <input type="text" style="display:none;" ng-model="search_param.sector">
                                    <div class="default text">默认为所有部门</div>
                                    <i class="dropdown icon"></i>
                                    <div class="menu">
                                        <div class="item" data-value="-1">所有部门</div>
                                        <div class="item" data-value="{{vitem.sector_id}}" ng-repeat="vitem in sectors|tree2Arr:'_child'">{{vitem.rep}}{{vitem.sector_name}}</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="fields">
                            <div class="inline field"  style="margin-left: 5.7em;">
                                <button class="clear_btn" ng-click="search()">查询</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <table class="ui yellow selectable celled striped table">
        <thead>
            <tr style="text-align:center;">
                <!-- <th>登陆名</th> -->
                <th> 姓名</th>
                <th>工号</th>
                <th>部门信息</th>
                <th>性别</th>
                <th>学历</th>
                <th>专业</th>
                <th>政治面貌</th>
                <th>岗位</th>
                <th>员工状态</th>
                <th>在岗状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody id="y_user_list">
            <tr ng-repeat="vuser in users" style="text-align:center;">
                <!-- <td>{{vuser.login_name}}</td> -->
                <td ng-click="showEmplModal(vuser['user_id'])" style="cursor:pointer;" >{{vuser.ename}}</td>
                <td>{{vuser.eyggh}}</td>
                <td>{{vuser.sname}}</td>
                <td>{{sexType[vuser.sex].v}}</td>
                <td>{{xlType[vuser.exl].v}}</td>
                <td>{{vuser.econtent}}</td>
                <td>{{zzmmType[vuser.ezzmm].v}}</td>
                <td>{{vuser.rname}}</td>
                <td>
                    <span user-status status="{{::vuser.state}}"></span>
                </td>
                <td>{{statusType[vuser.estatus].v}}</td>
               
                <td style="overflow: visible;text-align: center; padding: 0.2em">
                    <div class="ui dropdown  item " id="menu{{$index}}"  ng-click="operation($index)">
                        <div class="ui button" ng-click="operation($index)" style="padding: 7px 20px; ">员工管理</div>
                        <div class="menu">
                        <div class="item" ng-click="showEmplModal(vuser['user_id'])">查看档案</div>
                        <div class="item" href="javascript:void(0);" ng-click="resetPass( vuser['user_id'] )">重置密码</div>
                        <div class="item" ng-click="editEmplModal(vuser['user_id'])">修改档案</div>
                        <div class="item" ng-if="vuser.eshzt == 2" ng-click="returnEdit( vuser['user_id'] )">退回修改</div>
                    </div
                </td>
            </tr>
        </tbody>
        <tbody id="w_user_list" ng-show="users.length==0">
            <tr>
                <td colspan="11" style=" text-align:center;color: red;width: 100%;border: 1px solid #ccc;font-size: 16px;">没有找到数据~~~</td>
            </tr>
        </tbody>
        <tfoot ng-if="pagerdata.pageAll>1">
            <tr>
                <th colspan="11">
                    <div class="ui pagination menu" jspagination page-object="pagerdata" page-func="getPageData" id="user_listpage"></div>
                </th>
            </tr>
        </tfoot>

    </table>
</div>

<!-- 二次确认 -->
<div class="ui small second editlist modal">
    <div class="header">Modal #2 </div>
    <div class="content">
      <div class="description">
        <p>That's everything!</p>
      </div>
    </div>
    <div class="actions">
        <div class="ui blue button positive">确定</div>
        <div class="ui grey negative button">取消</div>
    </div>
</div>

<!-- 编辑员工信息开始 -->
<div class="ui edit large modal">
  <i class="close icon"></i>
  <div class="header_h4">
    编辑档案
  </div>
  <div class="content">
    <div class="ui top attached tabular menu" style="overflow:inherit">
      <a class="item active" data-tab="first">基本信息</a>
      <a class="item" data-tab="second">补充信息</a>
      <a class="item" data-tab="third">在司动态</a>
    </div>
    <div class="ui bottom attached tab segment active" data-tab="first">
      <div class="fir  ui form">
        <div class=" three fields">
          <div class="field" style="line-height: 32px">
            <label class="label_fl fiveWord">工号：</label>
            <input readonly type="text" placeholder="输入工号" name="yggh" ng-model="editEmpl.ext_yggh" class="disabled" style="width:160px;">
          </div>
          <div class="field" style="line-height: 32px">
            <label class="label_fl sixWord">姓名：</label>
            <input type="text" placeholder="输入姓名" name="name" ng-model="editEmpl.ext_name" style="width:160px;">
          </div>
          <div class="field" style="line-height: 32px">
            <label class="label_fl fourWord">手机：</label>
            <input type="text" placeholder="输入手机号码" name="phone" ng-model="editUser.phone" style="width:160px;">
          </div>
        </div>
        <div class=" three fields">
          <div class="field" style="line-height: 32px">
            <label class="label_fl fiveWord">微信：</label>
            <input type="text" placeholder="输入微信" name="weixin" ng-model="editUser.weixin" style="width:160px;">
          </div>
          <div class="field" style="line-height: 32px">
            <label class="label_fl sixWord">在岗状态：</label>
            <div class="ui input" style="width: 160px">
              <select name="workstatus" ng-model="editEmpl.ext_user_status" ng-options="type.k as type.v for type in statusType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>在岗状态</option>
              </select>
            </div>
          </div>
          <div class="field" >
            <label class="label_fl fourWord">部门：</label>
            <div class="ui selection dropdown disabled sector" style="width:160px">
                <input type="text" style="display:none;" name="sector" ng-model="editUser.sector_id">
                <div class="default text"></div>
                <i class="dropdown icon"></i>
                <div class="menu">
                    <div class="item" data-value="">请选择部门</div>
                    <div class="item" data-value="{{vitem.sector_id}}" ng-repeat="vitem in sectors|tree2Arr:'_child'">{{vitem.rep}}{{vitem.sector_name}}</div>
                </div>
            </div>
          </div>
        </div>
        <div class="three fields">
          <div class="field" >
            <label class="label_fl fiveWord">岗位：</label>
            <div class="ui selection dropdown disabled role" style="width:160px">
                <input type="text" style="display:none;" ng-model="editUser.role_id">
                <div class="default text"></div>
                <i class="dropdown icon"></i>
                <div class="menu">
                    <div class="item" data-value="">请选择岗位</div>
                    <div class="item" data-value="{{vitem.role_id}}" name="role" ng-repeat="vitem in roles|tree2Arr:'_child'">{{vitem.role_name}}</div>
                </div>
            </div>
          </div>
          <div class="field">
            <label class="label_fl sixWord">学历：</label>
            <div class="ui input" style="width: 160px">
              <select name="xl" ng-model="editEmpl.ext_xl" ng-options="type.k as type.v for type in xlType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>全部学历</option>
              </select>
            </div>
          </div>
          <div class="required field">
            <label class="label_fl fourWord">性别：</label>
            <div class="ui input" style="width: 160px">
              <select name="sex" ng-model="editUser.sex" ng-options="type.k as type.v for type in sexType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>性别类型</option>
              </select>
            </div>
          </div>
        </div>
        <div class=" three fields">
          <div class="required field">
            <label class="label_fl fiveWord">民族：</label>
            <div class="ui input" style="width: 160px">
              <select name="minzu" ng-model="editEmpl.ext_minzu" ng-options="type.k as type.v for type in minzuType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>民族类型</option>
              </select>
            </div>
          </div>
          <div class="required field">
            <label class="label_fl sixWord">出生日期：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="bird" id="edit_ext_bird" ng-model="editEmpl.ext_bird" placeholder="出生时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
          <div class="required field">
            <label class="label_fl fourWord">政治面貌：</label>
            <div class="ui input" style="width: 160px">
              <select name="zzmm" ng-model="editEmpl.ext_zzmm" ng-options="type.k as type.v for type in zzmmType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>政治面貌</option>
              </select>
            </div>
          </div>
        </div>
        <div class=" three fields">
          <div class="required field">
            <label class="label_fl fiveWord">婚姻状况：</label>
            <div class="ui input" style="width:160px;">
              <select name="marry" ng-model="editEmpl.ext_ismarry" ng-options="type.k as type.v for type in marryType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>婚姻状况</option>
              </select>
            </div>
          </div>
          <div class="required field">
            <label class="label_fl sixWord">身份证号：</label>
            <input type="text" placeholder="输入身份证号码" name="sfz" ng-model="editEmpl.ext_sfz" style="width:160px;">
          </div>
          <div class=" required field">
            <label class="label_fl fourWord">紧急电话：</label>
            <input type="text" placeholder="输入紧急联系电话" name="urgphone" ng-model="editEmpl.ext_urgphone" style="width:160px;">
          </div>
        </div>
        <div class=" three fields">
          <div class=" required field">
            <label class="label_fl fiveWord">电子邮箱：</label>
            <input type="text" placeholder="输入电子邮箱" name="email" ng-model="editUser.email" value="1111" style="width:160px;">
          </div>
          <div class=" required field">
            <label class="label_fl sixWord">参加工作时间：</label>
            <div class="ui left icon input" style="width:160px;">
              <input id="edit_ext_workdate" name="workdate" ng-model="editEmpl.ext_workdate" placeholder="参加工作时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
        </div>
        <div class=" required field">
          <label class="label_fl fiveWord">住址(现)：</label>
          <input type="text" placeholder="输入现住址" name="curaddr" ng-model='editEmpl.ext_curaddr' style="width:86%">
        </div>
        <div class=" required field">
          <label class="label_fl fiveWord">户口所在地：</label>
          <input type="text" placeholder="输入户口所在地" name="hkaddr" ng-model='editEmpl.ext_hkaddr' style="width:86%">
        </div>
        <div class="field">
          <label class="label_fl fiveWord">备注：</label>
          <textarea rows="2" name="reason" type="text" ng-model="editEmpl.ext_beizhu" style="width:86%"></textarea>
        </div>
      </div>
    </div>
    <div class="ui bottom attached tab segment" data-tab="second">
      <!-- 员工家庭信息编辑 -->
      <div class="fam ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">家庭主要成员</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr family">
            <button ng-click="familyAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="familySave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="familyCancel()" class="ui button">取消</button>
          </div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>关系</th>
              <th>姓名</th>
              <th>工作单位</th>
              <th>职务</th>
              <th>联系方式</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vfamily in familys">
              <td ng-if="vfamily.fam_type == 0">父亲</td>
              <td ng-if="vfamily.fam_type == 1">母亲</td>
              <td ng-if="vfamily.fam_type == 2">子女</td>
              <td>{{vfamily.fam_name}}</td>
              <td>{{vfamily.fam_wkunit}}</td>
              <td>{{vfamily.fam_zhiwu}}</td>
              <td>{{vfamily.fam_lxfs}}</td>
              <td>
                <a href="javascript:void(0);" ng-click="familyEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="familyDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!familys.length">
              <td colspan="6">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="famFrom">
          <table class="ui table family" hidden="hidden">
            <thead>
              <tr>
                <th style="width:33%;">新增信息</th>
                <th></th>
                <th style="width:33%;"></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class="field">
                    <label class="label_fl">关系：</label>
                    <div class="ui input" style="width:160px;">
                      <select name="fam_type" ng-model="family.fam_type" ng-options="type.k as type.v for type in familyType" class="more ui dropdown fl">
                        <option value="" selected disabled hidden>关系类型</option>
                      </select>
                    </div>
                  </div>
                </td>
                <td>
                  <div class="field">
                    <label class="label_fl">姓名：</label>
                    <input type="text" placeholder="输入姓名" name="fam_name" ng-model="family.fam_name" style="width:160px;">
                  </div>
                </td>
                <td></td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">工作单位：</label>
                    <input type="text" placeholder="输入单位名称" name="fam_wkunit" ng-model="family.fam_wkunit" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">职务：</label>
                    <input type="text" placeholder="输入职务" name="fam_zhiwu" ng-model="family.fam_zhiwu" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class="field">
                    <label class="label_fl">联系方式：</label>
                    <input type="text" placeholder="输入联系方式" name="fam_lxfs" ng-model="family.fam_lxfs" style="width:160px;">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>
      <!-- 员工教育信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="edu ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">教育经历</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr edu">
            <button ng-click="eduAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="eduSave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="eduCancel()" class="ui button">取消</button>
          </div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>学校名称</th>
              <th>专业/内容</th>
              <th>相关证书</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vedu in edus">
              <td>{{vedu.edu_bdate | limitTo : 10}}</td>
              <td>{{vedu.edu_edate | limitTo : 10}}</td>
              <td>{{vedu.edu_school}}</td>
              <td>{{vedu.edu_content}}</td>
              <td>{{vedu.edu_certificate}}</td>
              <td style="text-align: center;">
                <a href="javascript:void(0);" ng-click="eduEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="eduDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!edus.length">
              <td colspan="6">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="eduFrom">
          <table class="ui table edu" hidden="hidden">
            <thead>
              <tr>
                <th style="width:33%;">新增信息</th>
                <th></th>
                <th style="width:33%;"></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">开始时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="edu_bdate" name="bdate" ng-model="edu.edu_bdate" placeholder="开始时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">结束时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="edu_edate" name="edate" ng-model="edu.edu_edate" placeholder="结束时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td></td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">学校名称：</label>
                    <input type="text" placeholder="输入学校姓名" name="school" ng-model="edu.edu_school" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">专业/内容：</label>
                    <input type="text" placeholder="输入专业/内容" name="content" ng-model="edu.edu_content" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">相关证书：</label>
                    <input type="text" placeholder="输入相关证书" name="certificate" ng-model="edu.edu_certificate" style="width:160px;">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>

      <!-- 员工培训信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="train ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">培训经历</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr train">
            <button ng-click="trainAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="trainSave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="trainCancel()" class="ui button">取消</button>
          </div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>培训学校/机构</th>
              <th>培训课程</th>
              <th>相关证书</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vtrain in trains">
              <td>{{vtrain.train_bdate | limitTo : 10}}</td>
              <td>{{vtrain.train_edate | limitTo : 10}}</td>
              <td>{{vtrain.train_school}}</td>
              <td>{{vtrain.train_content}}</td>
              <td>{{vtrain.train_certificate}}</td>
              <td style="text-align: center;">
                <a href="javascript:void(0);" ng-click="trainEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="trainDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!trains.length">
              <td colspan="6">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="trainFrom">
          <table class="ui table train" hidden="hidden">
            <thead>
              <tr>
                <th style="width:33%;">新增信息</th>
                <th></th>
                <th style="width:33%;"></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">开始时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="train_bdate" name="bdate" ng-model="train.train_bdate" placeholder="开始时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">结束时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="train_edate" name="edate" ng-model="train.train_edate" placeholder="结束时间"  datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td></td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">学校\机构：</label>
                    <input type="text" placeholder="输入学校姓名" name="school" ng-model="train.train_school" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">培训课程：</label>
                    <input type="text" placeholder="输入培训课程" name="content" ng-model="train.train_content" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">相关证书：</label>
                    <input type="text" placeholder="输入相关证书"name="certificate" ng-model="train.train_certificate" style="width:160px;">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>

      <!-- 员工工作经历信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="work ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">工作经历</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr work">
            <button ng-click="workAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="workSave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="workCancel()" class="ui button">取消</button>
          </div>
        </div>
        
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>工作单位</th>
              <th>职务</th>
              <th>薪资</th>
              <th>离职原因</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vwork in works">
              <td>{{vwork.work_bdate | limitTo : 10}}</td>
              <td>{{vwork.work_edate | limitTo : 10}}</td>
              <td>{{vwork.work_unit}}</td>
              <td>{{vwork.work_post}}</td>
              <td>{{vwork.work_salary}}</td>
              <td>{{vwork.work_reason}}</td>
              <td style="text-align: center;">
                <a href="javascript:void(0);" ng-click="workEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="workDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!works.length">
              <td colspan="7">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="workFrom">
          <table class="ui table work" hidden="hidden">
            <thead>
              <tr>
                <th style="width:33%;">新增信息</th>
                <th></th>
                <th style="width:33%;"></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">开始时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="work_bdate" name="bdate" ng-model="work.work_bdate" placeholder="开始时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">结束时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="work_edate" name="edate" ng-model="work.work_edate" placeholder="结束时间"  datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">工作单位：</label>
                    <input type="text" placeholder="输入工作单位" name="unit" ng-model="work.work_unit" style="width:160px;">
                  </div>
                </td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">职务：</label>
                    <input type="text" placeholder="输入职务" name="post" ng-model="work.work_post" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">薪资：</label>
                    <input type="text" placeholder="输入薪资" name="salary" ng-model="work.work_salary" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">离职原因：</label>
                    <input type="text" placeholder="输入离职原因" name="reason" ng-model="work.work_reason" style="width:160px;">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>
    </div>
    <div class="ui bottom attached tab segment" data-tab="third">
      <div class="trd ui form">
        <div class="three fields">
          <div class="field">
            <label class="label_fl fiveWord">入职时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="create_time" id="edit_create_time" ng-model="editUser.create_time" placeholder="入职时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
          <div class="field">
            <label class="label_fl sevenWord">转正时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="zzdate" id="edit_ext_zzdate" ng-model="editEmpl.ext_zzdate" placeholder="转正时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
          <div class="field">
            <label class="label_fl sixWord">合同到期时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="cont_edate" id="edit_ext_cont_edate" ng-model="editEmpl.ext_cont_edate" placeholder="合同到期时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
        </div>
        <div class="three fields">
          <div class="field">
            <label class="label_fl fiveWord">续签时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="continue_date" id="edit_ext_continue_date" ng-model="editEmpl.ext_continue_date" placeholder="续签时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
          <div class="field">
            <label class="label_fl sevenWord">聘用形式：</label>
            <div class="ui input" style="width: 160px">
              <select name="emptype" ng-model="editEmpl.ext_emptype" ng-options="type.k as type.v for type in empType" class="more ui dropdown fl">
                <option value="" selected disabled hidden>聘用形式</option>
              </select>
            </div>
          </div>
          <div class="inline field" style="line-height: 32px;">
              <label>公司是否有亲戚朋友：</label>
              <div class="ui radio checkbox" style="margin-left: 10px">
                  <input name="isfriend" checked value="0" type="radio" ng-click="clickFriend(0)">
                  <label>否</label>
              </div>
              <div class="ui radio checked checkbox">
                  <input name="isfriend" value="1" type="radio" ng-click="clickFriend(1)">
                  <label>是</label>
              </div> 
          </div>
        </div>
        <div class="three fields">
          <div class="field">
            <label class="label_fl fiveWord">银行卡号：</label>
            <input type="text" placeholder="输入银行卡号" name="bankcode" ng-model="editEmpl.ext_bankcode" style="width:160px;">
          </div>
          <div class="field">
            <label class="label_fl sevenWord">缴纳保险时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="bird" id="edit_ext_sbdate" ng-model="editEmpl.ext_sbdate" placeholder="缴纳保险时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
          <div class="field">
            <label class="label_fl sixWord">缴纳公积金时间：</label>
            <div class="ui left icon input" style="width: 160px">
              <input name="bird" id="edit_ext_gjjdate" ng-model="editEmpl.ext_gjjdate" placeholder="缴纳公积金时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && search()" class="ui left icon input">
              <i class="calendar icon"></i>
            </div>
          </div>
        </div>
        <div class="three fields">
          <div class="inline field bmcont" style="line-height: 32px;">
              <label>是否签署保密协议：</label>
              <div class="ui radio checkbox" style="margin-left: 10px">
                  <input name="isbmcont" value="0" type="radio" ng-click="clickBmcont(0)">
                  <label>否</label>
              </div>
              <div class="ui radio checkbox">
                  <input name="isbmcont" value="1" type="radio" ng-click="clickBmcont(1)">
                  <label>是</label>
              </div>
          </div>
          <div class="inline field bcont" style="line-height: 32px;">
              <label>是否签署竞争禁止协议：</label>
              <div class="ui radio checkbox" style="margin-left: 10px">
                  <input name="isforbcont" value="0" type="radio" ng-click="clickForBcont(0)">
                  <label>否</label>
              </div>
              <div class="ui radio checkbox">
                  <input name="isforbcont" value="1" type="radio" ng-click="clickForBcont(1)">
                  <label>是</label>
              </div>    
          </div>
          <div class="inline field salarr" style="line-height: 32px;">
              <label>是否在公司领取薪酬：</label>
              <div class="ui radio checkbox" style="margin-left: 10px">
                  <input name="issalary" value="0" type="radio" ng-click="clickSalary(0)">
                  <label>否</label>
              </div>
              <div class="ui radio checkbox">
                  <input name="issalary" value="1" type="radio" ng-click="clickSalary(1)">
                  <label>是</label>
              </div>
          </div>
        </div>
        <div class="three fields">
          <div class="field">
            <label class="label_fl fiveWord">证券资格证书：</label>
            <input type="text" ng-model='editUser.teacher_name' placeholder="证券资格证书" maxlength="30" style="width:160px;">
          </div>
          <div class="field">
            <label class="label_fl sevenWord">证券资格证书编号：</label>
            <input type="text" ng-model='editUser.cert_num' placeholder="证券资格证书编号" maxlength="30" style="width:160px;">
          </div>
        </div>
      </div>

      <!-- 岗位异动 -->
      <div class="ui divider hidden"></div>
      <div class="ps ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">岗位异动</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr ps">
            <button ng-click="psAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="psSave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="psCancel()" class="ui button">取消</button>
          </div>
        </div>
       
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>时间</th>
              <th>异动经历</th>
              <th>异动原因</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vps in pss">
               <td>{{vps.ps_date}}</td>
                <td>从'{{vps.old_sname}}'的'{{vps.old_rname}}'岗位转到'{{vps.new_sname}}'的'{{vps.new_rname}}'岗位</td>
                <td>{{vps.ps_reason}}</td>
              <td style="text-align: center;">
                <a href="javascript:void(0);" ng-click="psEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="psDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!pss.length">
              <td colspan="4">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="psFrom">
          <table class="ui table ps" hidden="hidden">
            <thead>
              <tr>
                <th>新增信息</th>
                <th></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class="inline field">
                    <label>时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="ps_bdate" name="pdate" ng-model="ps.ps_date" placeholder="异动时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td></td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">变动后部门：</label>
                    <div class="ui selection dropdown sector" style="width:160px">
                        <input type="text" style="display:none;" mame="newSector" ng-model="ps.ps_new_sector">
                        <div class="default text">变动后部门</div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <div class="item" data-value="">请选择部门</div>
                            <div class="item" data-value="{{vitem.sector_id}}" ng-repeat="vitem in sectors|tree2Arr:'_child'">{{vitem.rep}}{{vitem.sector_name}}</div>
                        </div>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">变动后岗位：</label>
                    <div class="ui selection dropdown role"  style="min-width:160px;">
                        <input type="text"  style="display:none;" mame="newRole" ng-model="ps.ps_new_role">
                        <div class="default text">变动后岗位</div>
                        <i class="dropdown icon"></i>
                        <div class="menu" >
                            <div class="item" data-value=""  >请选择岗位</div>
                            <div class="item" data-value="{{vitem.role_id}}" ng-repeat="vitem in roles|tree2Arr:'_child'" >{{vitem.rep}}{{vitem.role_name}}</div>
                        </div>
                    </div>
                  </div>
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <div class="field">
                    <label class="label_fl">异动原因：</label>
                    <textarea maxlength="100" rows="2" name="reason" type="text" mame="preason" ng-model="ps.ps_reason"></textarea>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>
      <!-- 员工在司培训信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="hrcom ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">入司培训</div>
          <div style="position:absolute;top:-5px;right:0px;" class="fr hrcom">
            <button ng-click="hrcomAdd()" class="ui button">添加</button>
            <button style="display:none;" ng-click="hrcomSave()" class="ui button">保存</button>
            <button style="display:none;" ng-click="hrcomCancel()" class="ui button">取消</button>
          </div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>培训机构</th>
              <th>培训课程</th>
              <th>相关证书</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vhrcom in hrcoms">
              <td>{{vhrcom.hrcom_bdate | limitTo : 10}}</td>
              <td>{{vhrcom.hrcom_edate | limitTo : 10}}</td>
              <td>{{vhrcom.hrcom_school}}</td>
              <td>{{vhrcom.hrcom_content}}</td>
              <td>{{vhrcom.hrcom_certificate}}</td>
              <td style="text-align: center;">
                <a href="javascript:void(0);" ng-click="hrcomEdit();">修改</a>
                <a href="javascript:void(0);" ng-click="hrcomDel();">删除</a>
              </td>
            </tr>
            <tr ng-show="!hrcoms.length">
              <td colspan="6">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
        <form id="hrcomFrom">
          <table class="ui table hrcom" hidden="hidden">
            <thead>
              <tr>
                <th style="width:33%;">新增信息</th>
                <th></th>
                <th style="width:33%;"></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">开始时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="hrcom_bdate" name="bdate" ng-model="hrcom.hrcom_bdate" placeholder="开始时间" datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">结束时间：</label>
                    <div class="ui left icon input" style="width:160px;">
                      <input type="text" id="hrcom_edate" name="edate" ng-model="hrcom.hrcom_edate" placeholder="结束时间"  datetimepicker format='YYYY-MM-DD' ng-keyup="$event.keyCode == 13 && getFine()"><i class="calendar icon"></i>
                      <i class="calendar icon"></i>
                    </div>
                  </div>
                </td>
                <td></td>
              </tr>
              <tr>
                <td>
                  <div class=" field">
                    <label class="label_fl">培训机构：</label>
                    <input type="text" maxlength="30" placeholder="输入学校姓名" name="school" ng-model="hrcom.hrcom_school" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">培训课程：</label>
                    <input type="text" maxlength="20" placeholder="输入培训课程" name="content" ng-model="hrcom.hrcom_content" style="width:160px;">
                  </div>
                </td>
                <td>
                  <div class=" field">
                    <label class="label_fl">相关证书：</label>
                    <input type="text" maxlength="20" placeholder="输入相关证书" name="certificate" ng-model="hrcom.hrcom_certificate" style="width:160px;">
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </form>
      </div>
    </div>
    <div class="ui bottom attached tab segment">
    </div>
  </div>
  <div class="actions ">
    <div class="ui blue button positive">确定</div>
    <div class="ui grey negative button">取消</div>
  </div>
</div>
<!-- 编辑员工信息结束 -->


<!-- 查看员工信息开始 -->
<div class="ui show large modal">
  <i class="close icon"></i>
  <div class="header_h4">
    查看档案
  </div>
  <div class="content">
    <div class="ui top attached tabular menu" style="overflow:inherit">
      <a class="item active" data-tab="jiben">基本信息</a>
      <a class="item" data-tab="buchong">补充信息</a>
      <a class="item" data-tab="dongtai">在司动态</a>
      <a class="item" data-tab="jiangchen">奖惩经历</a>
    </div>
    <div class="ui bottom attached tab segment active" data-tab="jiben">
      <div class="ui form">
        <div class=" three fields">
          <div class="inline field" style="line-height: 32px">
            <label class="fiveWord">工号：</label><span>{{editEmpl.ext_yggh}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="sixWord">姓名：</label>
            <span ng-if="editEmpl.ext_name == null">无</span>
            <span>{{editEmpl.ext_name}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="fourWord">手机：</label>
            <span ng-if="editUser.phone == null">无</span>
            <span>{{editUser.phone}}</span>
          </div>
        </div>
        <div class=" three fields">
          <div class="inline field" style="line-height: 32px">
            <label class="fiveWord">微信：</label>
            <span ng-if="editUser.weixin == null">无</span>
            <span>{{editUser.weixin}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="sixWord">在岗状态：</label>
            <span ng-if="editEmpl.ext_user_status == null">正常</span>
            <span>{{statusType[editEmpl.ext_user_status].v}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="fourWord">部门：</label><span>{{editUser.sector_name}}</span>
          </div>
        </div>
        <div class="three fields">
          <div class="inline field" style="line-height: 32px">
            <label class="fiveWord">岗位：</label><span>{{editUser.role_name}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="sixWord">学历：</label>
            <span>{{xlType[editEmpl.ext_xl].v}}</span>
          </div>
          <div class=" inline field" style="line-height: 32px">
            <label class="fourWord">性别：</label><span>{{sexType[editUser.sex].v}}</span>
          </div>
        </div>
        <div class=" three fields">
          <div class=" inline field" style="line-height: 32px">
            <label class="fiveWord">民族：</label><span>{{minzuType[editEmpl.ext_minzu].v}}</span>
          </div>
          <div class=" inline field" style="line-height: 32px">
            <label class="sixWord">出生日期：</label>
            <span ng-if="editEmpl.ext_bird == null">无</span>
            <span>{{editEmpl.ext_bird | limitTo : 10}}</span>
          </div>
          <div class=" inline field" style="line-height: 32px">
            <label class="fourWord">政治面貌：</label><span>{{zzmmType[editEmpl.ext_zzmm].v}}</span>
            <!-- editEmpl.ext_zzmm -->
          </div>
        </div>
        <div class=" three fields">
          <div class=" inline field" style="line-height: 32px">
            <label class="fiveWord">婚姻状况：</label><span>{{marryType[editEmpl.ext_ismarry].v}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="sixWord">身份证号：</label>
            <span ng-if="editEmpl.ext_sfz == null">无</span>
            <span>{{editEmpl.ext_sfz}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="fourWord">紧急电话：</label>
            <span ng-if="editEmpl.ext_urgphone == null">无</span>
            <span>{{editEmpl.ext_urgphone}}</span>
          </div>
        </div>
        <div class=" three fields">
          <div class="inline field" style="line-height: 32px">
            <label class="fiveWord">电子邮箱：</label>
            <span ng-if="editUser.email == null">无</span>
            <span>{{editUser.email}}</span>
          </div>
          <div class="inline field" style="line-height: 32px">
            <label class="sixWord">参加工作时间：</label>
            <span ng-if="editEmpl.ext_workdate == null">无</span>
            <span>{{editEmpl.ext_workdate}}</span>
          </div>
        </div>
        <div class="inline field" style="line-height: 32px">
          <label class="fiveWord">住址(现)：</label>
          <span ng-if="editEmpl.ext_curaddr == null">无</span>
          <span>{{editEmpl.ext_curaddr}}</span>
        </div>
        <div class="inline field" style="line-height: 32px">
          <label class="fiveWord">户口所在地：</label>
          <span ng-if="editEmpl.ext_hkaddr == null">无</span>
          <span>{{editEmpl.ext_hkaddr}}</span>
        </div>
        <div class="inline field" >
          <label class="fiveWord">备注：</label>
          <span ng-if="editEmpl.ext_beizhu == null">无</span>
          <span>{{editEmpl.ext_beizhu}}</span>
        </div>
      </div>
    </div>
    <div class="ui bottom attached tab segment" data-tab="buchong">
      <!-- 员工家庭信息编辑 -->
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">家庭主要成员</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>关系</th>
              <th>姓名</th>
              <th>工作单位</th>
              <th>职务</th>
              <th>联系方式</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vfamily in familys">
              <td ng-if="vfamily.fam_type == 0">父亲</td>
              <td ng-if="vfamily.fam_type == 1">母亲</td>
              <td ng-if="vfamily.fam_type == 2">子女</td>
              <td>{{vfamily.fam_name}}</td>
              <td>{{vfamily.fam_wkunit}}</td>
              <td>{{vfamily.fam_zhiwu}}</td>
              <td>{{vfamily.fam_lxfs}}</td>
            </tr>
            <tr ng-show="!familys.length">
              <td colspan="5">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <!-- 员工教育信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">教育经历</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>学校名称</th>
              <th>专业/内容</th>
              <th>相关证书</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vedu in edus">
              <td>{{vedu.edu_bdate | limitTo : 10}}</td>
              <td>{{vedu.edu_edate | limitTo : 10}}</td>
              <td>{{vedu.edu_school}}</td>
              <td>{{vedu.edu_content}}</td>
              <td>{{vedu.edu_certificate}}</td>
            </tr>
            <tr ng-show="!edus.length">
              <td colspan="5">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>

      <!-- 员工培训信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">培训经历</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>培训学校/机构</th>
              <th>培训课程</th>
              <th>相关证书</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vtrain in trains">
              <td>{{vtrain.train_bdate | limitTo : 10}}</td>
              <td>{{vtrain.train_edate | limitTo : 10}}</td>
              <td>{{vtrain.train_school}}</td>
              <td>{{vtrain.train_content}}</td>
              <td>{{vtrain.train_certificate}}</td>
            </tr>
            <tr ng-show="!trains.length">
              <td colspan="5">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>

      <!-- 员工工作经历信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">工作经历</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>工作单位</th>
              <th>职务</th>
              <th>薪资</th>
              <th>离职原因</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vwork in works">
              <td>{{vwork.work_bdate | limitTo : 10}}</td>
              <td>{{vwork.work_edate | limitTo : 10}}</td>
              <td>{{vwork.work_unit}}</td>
              <td>{{vwork.work_post}}</td>
              <td>{{vwork.work_salary}}</td>
              <td>{{vwork.work_reason}}</td>
            </tr>
            <tr ng-show="!works.length">
              <td colspan="6">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <div class="ui bottom attached tab segment" data-tab="dongtai">
      <div class="ui form">
        <div class="three fields">
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">入职时间：</label>
            <span ng-if="editUser.create_time == null">无</span>
            <span>{{editUser.create_time | limitTo : 10}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">转正时间：</label>
            <span ng-if="editEmpl.ext_zzdate == null">无</span>
            <span>{{editEmpl.ext_zzdate | limitTo : 10}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="nineWord">合同到期时间：</label>
            <span ng-if="editEmpl.ext_cont_edate == null">无</span>
            <span>{{editEmpl.ext_cont_edate | limitTo : 10}}</span>
          </div>
        </div>
        <div class="three fields" >
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">续签时间：</label>
            <span ng-if="editEmpl.ext_continue_date == null">无</span>
            <span>{{editEmpl.ext_continue_date | limitTo : 10}}</span>
          </div>
          <div class="inline field">
            <label class="eightWord">聘用形式：</label><span>{{empType[editEmpl.ext_emptype].v}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="nineWord">公司是否有亲戚朋友：</label><span>{{editEmpl.isfriend == 1 ? '是' : '否' }}</span>
          </div>
        </div>
        <div class="three fields">
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">银行卡号：</label>
            <span ng-if="editEmpl.ext_bankcode == null">无</span>
            <span>{{editEmpl.ext_bankcode}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">缴纳保险时间：</label>
            <span ng-if="editEmpl.ext_sbdate == null">无</span>
            <span>{{editEmpl.ext_sbdate | limitTo : 10}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="nineWord">缴纳公积金时间：</label>
            <span ng-if="editEmpl.ext_gjjdate == null">无</span>
            <span>{{editEmpl.ext_gjjdate | limitTo : 10}}</span>
          </div>
        </div>
        <div class="three fields">
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">是否签署保密协议：</label><span>{{editEmpl.isbmcont == 1 ? '是' : '否' }}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">是否签署保密协议：</label><span>{{editEmpl.isforbcont == 1 ? '是' : '否' }}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="nineWord">是否在公司领取薪酬：</label><span>{{editEmpl.issalary == 1 ? '是' : '否' }}</span>
          </div>
        </div>
        <div class="three fields">
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">证券资格证书：</label>
            <span ng-if="editUser.teacher_name == null">无</span>
            <span>{{editUser.teacher_name}}</span>
          </div>
          <div class="inline field" style="line-height: 32px;">
            <label class="eightWord">证券资格证书编号：</label>
            <span ng-if="editUser.cert_num == null">无</span>
            <span>{{editUser.cert_num}}</span>
          </div>
        </div>
      </div>

      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">岗位异动</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>时间</th>
              <th>异动经历</th>
              <th>异动原因</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vps in pss">
              <td>{{vps.ps_date | limitTo : 10}}</td>
              <td>从'{{vps.old_sname}}'的'{{vps.old_rname}}'岗位转到'{{vps.new_sname}}'的'{{vps.new_rname}}'岗位</td>
                <td>{{vps.ps_reason}}</td>
            </tr>
            <tr ng-show="!pss.length">
              <td colspan="3">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      
      <!-- 员工在司培训信息编辑 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">培训经历</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th>开始时间</th>
              <th>结束时间</th>
              <th>培训机构</th>
              <th>培训课程</th>
              <th>相关证书</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vhrcom in hrcoms">
              <td>{{vhrcom.hrcom_bdate | limitTo : 10}}</td>
              <td>{{vhrcom.hrcom_edate | limitTo : 10}}</td>
              <td>{{vhrcom.hrcom_school}}</td>
              <td>{{vhrcom.hrcom_content}}</td>
              <td>{{vhrcom.hrcom_certificate}}</td>
            </tr>
            <tr ng-show="!hrcoms.length">
              <td colspan="5">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <div class="ui bottom attached tab segment" data-tab="jiangchen">
      <!-- 员工嘉奖信息查看 -->
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">嘉  奖</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th style="width:14%;">时间</th>
              <th style="width:52%;">嘉奖缘由</th>
              <th>奖励标准</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vcomm in comms">
              <td>{{vcomm.comm_date | limitTo : 10}}</td>
              <td>{{vcomm.comm_reason}}</td>
              <td>{{jjways[vcomm.comm_class-(-1)].v}}</td>
            </tr>
            <tr ng-show="!comms.length">
              <td colspan="3">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <!-- 员工处罚信息查看 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">处  罚</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th style="width:14%;">时间</th>
              <th style="width:27%;">惩罚缘由</th>
              <th style="width:25%;">惩罚方式</th>
              <th>类型</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vpunish in punishs">
              <td>{{vpunish.pub_time | limitTo : 10}}</td>
              <td>{{vpunish.description}}</td>
              <td>{{vpunish.fine_remark}}</td>
              <td>{{cfways[vpunish.fine_type-(-1)].v}}</td>
              
            </tr>
            <tr ng-show="!punishs.length">
              <td colspan="4">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <!-- 员工处罚信息查看 -->
      <div class="ui divider hidden"></div>
      <div class="ui form">
        <div class="fields" style="position: relative;">
          <div style="margin: auto" class="ui center aligned header">特殊贡献</div>
        </div>
        <table class="ui celled table" style="text-align: center;">
          <thead>
            <tr>
              <th style="width:14%;">时间</th>
              <th style="width:27%;">事件经过</th>
              <th >获取荣誉</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="vof in ofs">
              <td>{{vof.of_date | limitTo : 10}}</td>
              <td>{{vof.of_desc}}</td>
              <td>{{vof.of_get}}</td>
              <!-- <td>{{vof.of_type}}</td> -->
            </tr>
            <tr ng-show="!ofs.length">
              <td colspan="4">
                <span>没有找到数据~~~</span>
              </td>
            </tr>
          </tbody>
        </table>
      </div>


    </div>
    <div class="ui bottom attached tab segment">
    </div>
  </div>
  <div class="actions ">
    <div class="ui blue button positive">确定</div>
    <div class="ui grey negative button">取消</div>
  </div>
</div>
<!-- 查看员工信息结束 -->

<!-- 密码重置 -->
<div class="ui reset_pass modal">
    <i class="close icon"></i>
    <div class="header_h4">
        密码重置
    </div>
    <div class="content">
        <form action="#" name="pwd_reset" id="pwd_reset">
            <div class="ui form">
                <div class="three fields">
                    <div class="field" style="line-height:32px;">
                        <b>登录名:</b>
                        <span style="min-width:160px;">{{resetData['user'].login_name}}</span>
                    </div>
                    <div class="field" style="line-height:32px;">
                        <b>工号:</b>
                        <span style="min-width:160px;">{{resetData['userExt'].ext_yggh}}</span>
                    </div>
                    <div class="field" style="line-height:32px;">
                        <b>姓名:</b>
                        <span style="min-width:160px;">{{resetData['userExt'].ext_name}}</span>
                    </div>
                </div>
                <div class="fields">
                    <div class="field required">
                        <label class="label_fl">密码:</label>
                        <input type="text" name="pwd"  style="width:160px;float:left;"  ng-model="resetData['user'].pwd" maxlength="12">
                    </div>
                    <div class="ui right aligned">
                        <div class="ui warning message" style="display:block;">
                            密码至少6个字符
                        </div>
                    </div>
                </div>

            </div>
        </form>
    </div>
    <div class="actions ">
        <div class="ui blue button positive" ng-click="userchpwd()">确定</div>
        <div class="ui grey negative button" >取消</div>
    </div>
</div>
<!-- //密码重置 -->

<!-- 添加新用户 -->
<div class="ui add modal">
    <i class="close icon"></i>
    <div class="header_h4">
        添加新用户
    </div>
    <div class="content">
        <form class="ui form" action="#" name="addfrm" id="addfrm">
            <div class="ui form">
                <div class="fields">
                    <div class="six wide field required" >
                        <label class="label_fl fourWord">登陆名</label>
                        <input type="text" name="name" ng-model="addData.login_name" ng-readonly="1" style="width:160px;float:left;" placeholder="请填写登录名">
                    </div>
                    <div class="six wide field required" >
                        <label class="label_fl fourWord">工号</label>
                        <input type="text" name="ext_yggh" ng-model="extData.ext_yggh" ng-readonly="1" style="width:160px;float:left;" placeholder="请填写工号" >
                    </div>
                    <div class="six wide field required" >
                        <label class="label_fl twoWord">密码</label>
                        <input type="text" name="pwd" id="pwd"  ng-model="addData.pwd" ng-readonly="1" style="width:160px;float:left;" placeholder="默认密码hzhfzx" maxlength="12">
                    </div>
                </div>
                <div class="fields">
                    <div class="six wide field required">
                        <label class="label_fl fourWord"> 姓名</label>
                        <input type="text" name="ext_name" ng-model="extData.ext_name" style="width:160px;float:left;" placeholder="请填写姓名" maxlength="5">
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl fourWord">手机号码</label>
                        <input type="text" name="phone" ng-model="addData.phone" style="width:160px;float:left;" placeholder="请填写手机号码" maxlength="15">
                    </div>
                    <div class="six wide field required" >
                        <label class="label_fl twoWord">微信</label>
                        <input type="text" name="weixin" style="width:160px;float:left;"   ng-model="addData.weixin"  placeholder="请填写微信" >
                    </div>
                </div>
                <div class="fields">
                    <!-- <div class="six wide field required">
                        <label class="label_fl threeWord">状态</label>
                        <div class="ui left icon input" style="width:160px;float:left;">
                            <select class="ui dropdown add_state" name="status"  ng-model="addData.state">
                                <option value="2" selected>正式员工</option>
                                <option value="-1">离职员工</option>
                                <option value="1">试用员工</option>
                                <option value="0">禁止登陆</option>
                            </select>
                        </div>
                    </div> -->
                    <div class="six wide field required">
                        <label class="label_fl fourWord">在岗状态</label>
                        <div class="ui left icon input" style="width:160px;float:left;">
                            <select name="workstatus" ng-model="extData.ext_user_status" ng-options="type.k as type.v for type in statusType" class="ui dropdown add_state">
                            </select>
                        </div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl fourWord">部门</label>
                        <div class="ui selection dropdown"  style="min-width:160px;float:left;">
                            <input  type="text"  style="display: none;" name="sector" ng-model="addData.sector_id">
                            <div class="default text">选择员工所属部门</div>
                            <i class="dropdown icon"></i>
                            <div class="menu" >
                                <div class="item" data-value="{{vitem.sector_id}}" ng-repeat="vitem in sectors|tree2Arr:'_child'" >{{vitem.rep}}{{vitem.sector_name}}</div>
                            </div>
                        </div>
                    </div>
                    <div class="six wide field required">
                        <label class="label_fl twoWord">岗位</label>
                        <div class="ui selection dropdown"  style="min-width:160px;float:left;">
                            <input  type="text"  style="display: none;" name="role" ng-model="addData.role_id">
                            <div class="default text">选择员工所属岗位</div>
                            <i class="dropdown icon"></i>
                            <div class="menu" >
                                <div class="item" data-value="{{vitem.role_id}}" ng-repeat="vitem in roles|tree2Arr:'_child'" >{{vitem.rep}}{{vitem.role_name}}</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="actions ">
        <div class="ui blue button positive">确定</div>
        <div class="ui grey negative button" >取消</div>
    </div>
</div>

<!-- <div class="ui small reset_confirm modal transition">
    <div class="header_h4">确定密码重置</div>
    <div class="content">
        <p>确定要重置用户【{{resetData['userExt'].ext_name}}】密码吗？</p>
    </div>
    <div class="actions ">
        <div class="ui blue button positive">确定</div>
        <div class="ui grey negative button" >取消</div>
    </div>
</div> -->
<!-- 系统信息弹出层 -->
<div class="ui systemerror modal transition" >
    <div class="header_h4">
        系统提示
    </div>
    <div class="content">
        <div class="inline fluid fields">
            <div class="field" style="display: inline-block;width: 5%;" ng-show="userRcode==1">
                <i class="thumbs up large icon"></i>
            </div>
            <div class="field" style="display: inline-block;width: 5%;" ng-show="userRcode==0">
                <i class="thumbs down large icon"></i>
            </div>
            <div class="field" style="display: inline-block;">
                <p>{{userMsg}}</p>
            </div>
        </div>
    </div>
    <div class="actions ">
        <div class="ui blue  positive button">关闭</div>
    </div>
</div>
<style type="text/css">
.ui.dropdown.selection{width: 100%;}
</style>
<script type="text/javascript">
    $(function(){
        $('.ui.dropdown').dropdown({
            onChange:function(value, text, $choice){
                $($choice).parent().parent().find('input').val( value );
                $($choice).parent().parent().find('input').trigger('change');
            }
        });
        //添加用户验证
        $('#addfrm').form({
            on: 'blur',
            inline : true,
            fields: {
                /*pwd: {
                    identifier: 'pwd',
                    rules: [
                        {
                            type : 'empty',
                            prompt : '密码不能为空'
                        },
                        {
                            type : 'minLength[6]',
                            prompt : '密码至少为6位'
                        }，
                        {
                            type : 'maxLength[12]',
                            prompt : '密码最多为12位'
                        }
                    ]
                },*/
                name: {
                    identifier: 'ext_name',
                    rules: [
                        {
                            type   : 'empty',
                            prompt : '用户姓名不能为空'
                        },
                        {
                            type:'minLength[2]',
                            prompt : '姓名至少为2个字符'
                        }
                    ]},
                yggh: {
                    identifier: 'ext_yggh',
                    rules: [
                        {
                            type   : 'empty',
                            prompt : '工号名不能为空'
                        },
                        {
                            type:'minLength[2]',
                            prompt : '工号至少为2个字符'
                        }
                    ]},
                phone:  {
                    identifier: 'phone',
                    rules:  [
                        {
                            type: 'empty',
                            prompt: "手机号码不能为空"
                        },
                        {
                            type: 'number',
                            prompt: "手机号码只允许数字"
                        },
                        {
                            type: 'exactLength[11]',
                            prompt: "手机号码长度不正确"
                        }
                    ]
                  },
                weixin:{
                    identifier: 'weixin',
                    optional   : false,
                    rules: [
                      {
                        type   : 'empty',
                        prompt : '请输入微信号码'
                      }
                ]},
                state: {
                    identifier: 'status',
                    rules: [
                      {
                        type   : 'empty',
                        prompt : '员工状态不能为空'
                      }
                ]},
                sector: {
                    identifier: 'sector',
                    rules: [
                      {
                        type   : 'empty',
                        prompt : '部门不能为空'
                      }
                ]},
                role: {
                    identifier: 'role',
                    rules: [
                      {
                        type   : 'empty',
                        prompt : '岗位不能为空'
                      }
                ]},

            }});
        //重置密码验证
        $('#pwd_reset').form({
            on: 'blur',
            inline : true,
            fields: {
                czpwd:{
                identifier: 'pwd',
                rules: [
                  {
                    type   : 'empty',
                    prompt : '密码不能为空'
                  },
                  {
                    type:'minLength[6]',
                    prompt : '新密码至少为6位'
                  }
                ]}
            }});

            $('.fir.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                xl: {
                  identifier: 'xl',
                  rules: [{
                    type: 'empty',
                    prompt: '学历不能为空'
                  }]
                },
                sex: {
                  identifier: 'sex',
                  rules: [{
                    type: 'empty',
                    prompt: '性别不能为空'
                  }]
                },
                minzu: {
                  identifier: 'minzu',
                  rules: [{
                    type: 'empty',
                    prompt: '民族不能为空'
                  }]
                },
                bird: {
                  identifier: 'bird',
                  rules: [{
                    type: 'empty',
                    prompt: '出生日期不能为空'
                  }]
                },
                zzmm: {
                  identifier: 'zzmm',
                  rules: [{
                    type: 'empty',
                    prompt: '政治面貌不能为空'
                  }]
                },
                marry: {
                  identifier: 'marry',
                  rules: [{
                    type: 'empty',
                    prompt: '婚姻状态不能为空'
                  }]
                },
                sfz: {
                  identifier: 'sfz',
                  rules: [{
                      type: 'empty',
                      prompt: '身份证号不能为空'
                    },
                    {
                      type: 'regExp[/^[0-9]{15}|[0-9]{18}$/]',
                      prompt: '请输入正确的身份证格式'
                    }
                  ]
                },
                urgphone: {
                  identifier: 'urgphone',
                  rules: [{
                      type: 'empty',
                      prompt: '紧急电话不能为空'
                    },
                    {
                      type: 'regExp[/^[0-9]{7,11}$/]',
                      prompt: '请输入正确的电话格式'
                    }
                  ]
                },
                email: {
                  identifier: 'email',
                  rules: [{
                      type: 'email',
                      prompt: '请输入正确的邮箱格式'
                    },
                    {
                      type: 'maxLength[30]',
                      prompt: '字段最大长度为30个字符'
                    }
                  ]
                },
                workdate: {
                  identifier: 'workdate',
                  rules: [{
                    type: 'empty',
                    prompt: '参加工作时间不能为空'
                  }]
                },
                curaddr: {
                  identifier: 'curaddr',
                  rules: [{
                      type: 'empty',
                      prompt: '住址(现)不能为空'
                    },
                    {
                      type: 'maxLength[30]',
                      prompt: '字段最大长度为30个字符'
                    }
                  ]
                },
                hkaddr: {
                  identifier: 'hkaddr',
                  rules: [{
                      type: 'empty',
                      prompt: '户口所在地不能为空'
                    },
                    {
                      type: 'maxLength[30]',
                      prompt: '字段最大长度为30个字符'
                    }
                  ]
                }
              }
            });

            $('.fam.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                fam_type: {
                  identifier: 'fam_type',
                  rules: [{
                    type: 'empty',
                    prompt: '请选择关系类型'
                  }]
                },
                fam_name: {
                  identifier: 'fam_name',
                  rules: [{
                      type: 'empty',
                      prompt: '姓名不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                },
                fam_wkunit: {
                  identifier: 'fam_wkunit',
                  rules: [{
                    type: 'maxLength[25]',
                    prompt: '字段最大长度为25个字符'
                  }]
                },
                fam_zhiwu: {
                  identifier: 'fam_zhiwu',
                  rules: [{
                    type: 'maxLength[10]',
                    prompt: '字段最大长度为10个字符'
                  }]
                },
                fam_lxfs: {
                  identifier: 'fam_lxfs',
                  rules: [{
                      type: 'empty',
                      prompt: '请输入联系方式'
                    },
                    {
                      type: 'regExp[/^[0-9]{7,11}$/]',
                      prompt: '请输入正确的联系方式'
                    }
                  ]
                }
              }
            });
            $('.edu.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                bdate: {
                  identifier: 'bdate',
                  rules: [{
                    type: 'empty',
                    prompt: '开始日期不能为空'
                  }]
                },
                edate: {
                  identifier: 'edate',
                  rules: [{
                    type: 'empty',
                    prompt: '结束时间不能为空'
                  }]
                },
                school: {
                  identifier: 'school',
                  rules: [{
                      type: 'empty',
                      prompt: '学校名称不能为空'
                    },
                    {
                      type: 'maxLength[15]',
                      prompt: '字段最大长度为15个字符'
                    }
                  ]
                },
                content: {
                  identifier: 'content',
                  rules: [{
                      type: 'empty',
                      prompt: '所学专业/内容不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                },
                certificate: {
                  identifier: 'certificate',
                  rules: [{
                      type: 'empty',
                      prompt: '相关证书不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                }
              }
            });

            $('.train.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                bdate: {
                  identifier: 'bdate',
                  rules: [{
                    type: 'empty',
                    prompt: '开始日期不能为空'
                  }]
                },
                edate: {
                  identifier: 'edate',
                  rules: [{
                    type: 'empty',
                    prompt: '结束时间不能为空'
                  }]
                },
                school: {
                  identifier: 'school',
                  rules: [{
                      type: 'empty',
                      prompt: '培训学校/机构不能为空'
                    },
                    {
                      type: 'maxLength[15]',
                      prompt: '字段最大长度为15个字符'
                    }
                  ]
                },
                content: {
                  identifier: 'content',
                  rules: [{
                      type: 'empty',
                      prompt: '培训课程不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                },
                certificate: {
                  identifier: 'certificate',
                  rules: [{
                      type: 'empty',
                      prompt: '相关证书不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                }
              }
            });

            $('.work.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                bdate: {
                  identifier: 'bdate',
                  rules: [{
                    type: 'empty',
                    prompt: '开始日期不能为空'
                  }]
                },
                edate: {
                  identifier: 'edate',
                  rules: [{
                    type: 'empty',
                    prompt: '结束时间不能为空'
                  }]
                },
                unit: {
                  identifier: 'unit',
                  rules: [{
                      type: 'empty',
                      prompt: '工作单位不能为空'
                    },
                    {
                      type: 'maxLength[25]',
                      prompt: '字段最大长度为25个字符'
                    }
                  ]
                },
                post: {
                  identifier: 'post',
                  rules: [{
                      type: 'empty',
                      prompt: '职务不能为空'
                    },
                    {
                      type: 'maxLength[10]',
                      prompt: '字段最大长度为10个字符'
                    }
                  ]
                },
                salary: {
                  identifier: 'salary',
                  rules: [{
                      type: 'empty',
                      prompt: '薪资不能为空'
                    },
                    {
                      type: 'maxLength[11]',
                      prompt: '字段最大长度为11个字符'
                    },
                    {
                      type: 'number',
                      prompt: '请输入数字'
                    }
                  ]
                },
                reason: {
                  identifier: 'reason',
                  rules: [{
                      type: 'empty',
                      prompt: '离职原因不能为空'
                    },
                    {
                      type: 'maxLength[50]',
                      prompt: '字段最大长度为50个字符'
                    }
                  ]
                }
              }
            });


            $('.ps.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                pdate: {
                  identifier: 'pdate',
                  rules: [{
                    type: 'empty',
                    prompt: '日期不能为空'
                  }]
                },
                newSector: {
                  identifier: 'newSector',
                  rules: [{
                    type: 'empty',
                    prompt: '请选择部门'
                  }
                  ]
                },
                newRole: {
                  identifier: 'newRole',
                  rules: [{
                      type: 'empty',
                      prompt: '请选择岗位'
                    }
                  ]
                },
                preason: {
                  identifier: 'preason',
                  rules: [{
                      type: 'empty',
                      prompt: '请填写原因'
                    },
                    {
                      type: 'maxLength[50]',
                      prompt: '字段最大长度为50个字符'
                    }
                  ]
                }

              }
            });
            
            $('hrcom.ui.form').form({
              inline: true,
              on: 'blur',
              fields: {
                bdate: {
                  identifier: 'bdate',
                  rules: [{
                    type: 'empty',
                    prompt: '请选择开始日期'
                  }]
                },
                edate: {
                  identifier: 'edate',
                  rules: [{
                    type: 'empty',
                    prompt: '请选择结束日期'
                  }]
                },
                school: {
                  identifier: 'school',
                  rules: [{
                    type: 'empty',
                    prompt: '培训机构不能为空'
                  }
                  ]
                },
                content: {
                  identifier: 'content',
                  rules: [{
                      type: 'empty',
                      prompt: '请填写课程'
                    },
                    {
                      type: 'maxLength[15]',
                      prompt: '字段最大长度为15个字符'
                    }
                  ]
                },
                certificate: {
                  identifier: 'certificate',
                  rules: [{
                      type: 'empty',
                      prompt: '请填写证书'
                    }
                  ]
                }
              }
            });

    });
</script>
